package com.ucap.bbs.service.impl;

import java.util.List;
import java.util.Map;

import com.ucap.bbs.dao.ITopicDao;
import com.ucap.bbs.pojo.Topic;
import com.ucap.bbs.service.ITopicService;

public class TopicServiceImpl implements ITopicService {
	private ITopicDao topicDao;
	
	public void setTopicDao(ITopicDao topicDao) {
		this.topicDao = topicDao;
	}

	@Override
	public List<Topic> queryTopicListForPage(Topic topic) {
		List<Topic>  list = this.topicDao.queryTopicListForPage(topic);
		return list;
	}

	@Override
	public List<Topic> queryTopicListForRdwt(Topic topic) {
		List<Topic> list = this.topicDao.queryTopicListForRdwt(topic);
		return list;
	}

	@Override
	public List<Map> queryListForIndexBmhfltj() {
		List<Map> list = this.topicDao.queryListForIndexBmhfltj();
		return list;
	}

	@Override
	public List<Topic> queryListForIndexZxhf(Topic topic) {
		List<Topic> list = this.topicDao.queryListForIndexZxhf(topic);
		return list;
	}

	@Override
	public void addTopic(Topic topic) {
		this.topicDao.addTopic(topic);
	}

	@Override
	public List<Topic> queryTopicList(Topic topic) {
		List<Topic> list = this.topicDao.queryTopicList(topic);
		return list;
	}

	@Override
	public void updateReplyNum(String guid) {
		this.topicDao.updateReplyNum(guid);
	}

	@Override
	public Topic queryTopicDetail(String guid) {
		return this.topicDao.queryTopicDetail(guid);
	}
	
}
